feat(chat): add auto session-reuse, headless prompt, and open-webui filter#80
Open
AbdulShahzeb wants to merge 1 commit intoCoreWorxLab:feat/chat-apifrom
Open
feat(chat): add auto session-reuse, headless prompt, and open-webui filter#80AbdulShahzeb wants to merge 1 commit intoCoreWorxLab:feat/chat-apifrom
AbdulShahzeb wants to merge 1 commit intoCoreWorxLab:feat/chat-apifrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reuse_sessionflag toPOST /api/chat— whentrueand nosession_idis provided, reuses the most recently active session instead of creating a new oneCHAT_PROMPTenv var for the chat API to load a different system prompt (e.g.,CHAT_PROMPT=headlessresolves toprompt/en/headless.md)prompt/en/headless.md— text-optimised prompt with numeric formatting, markdown support, and no voice/TTS constraintsintegrations/openwebui/caal_offload.py) that routes keyword-triggered messages to CAAL's chat API with session reuse, and supportsreload caal/caal reloadcommands to hot-reload CAAL from the chatNote
I am not too picky about where
caal_offload.pyis stored.integrations/openwebui/is a temporary location - feel free to move it elsewhere.Type of Change